@import "./variable.scss";

page {
  color: var(--content);
  background-color: var(--bg-color);
  -webkit-font-smoothing: antialiased;
  font-size: var(--content-size);
  line-height: 1.5;
  box-sizing: border-box;
  min-height: 100%;
}

view {
  box-sizing: border-box;
}

.primary {
  color: var(--primary);
}

.success {
  color: var(--success);
}

.info {
  color: var(--info);
}

.warning {
  color: var(--warning);
}

.danger {
  color: var(--danger);
}

.gray {
  color: var(--gray);
}

.bg-default {
  background-color: var(--border-color);
}

.bg-primary {
  background-color: var(--primary);
}

.bg-success {
  background-color: var(--success);
}

.bg-info {
  background-color: var(--info);
}

.bg-warning {
  background-color: var(--warning);
}

.bg-danger {
  background-color: var(--danger);
}

.bg-gray {
  background-color: var(--gray);
}

.bg-white {
  background-color: #fff;
}

.layout-box {
  padding: var(--gutter);
  background-color: #fff;
}

.radius {
  border-radius: 8rpx;
}

.radius-lg {
  border-radius: 16rpx;
}

.bdb {
  border-bottom: 1px solid var(--border-color);
}

.gutter-v {
  margin-bottom: var(--gutter-v);
}

.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-justify {
  text-align-last: justify;
}

.flex {
  display: flex;
}

.flex-grow {
  flex-grow: 1;
}

.justify-between {
  justify-content: space-between;
}

.align-center {
  align-items: center;
}

.shadow {
  box-shadow: 0 0 10px 2px rgba(65, 65, 70, 0.2);
}

.title {
  font-size: var(--title-size);
  color: var(--title);
}

.content {
  font-size: var(--content-size);
  color: var(--content);
}

.sub {
  font-size: var(--sub-size);
  color: var(--sub);
}

.bold {
  font-weight: bold;
}

.line1 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line2 {
  max-height: 42px;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - var(--window-top));
}

.main {
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.title-hd {
  padding: 20rpx;
  position: relative;
}

.title-hd::before {
  position: absolute;
  content: "";
  width: 3px;
  height: 13px;
  background-color: var(--primary);
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.inline-block {
  display: inline-block;
}

.block {
  display: block;
}

.vm {
  vertical-align: middle;
}

.fs12 {
  font-size: 12px;
}

.pr {
  position: relative;
}

.pa {
  position: absolute;
}

.sticky {
  position: sticky;
  top: 0;
}

@mixin MixinsCss_gd-scrollbar {
  &::-webkit-scrollbar {
    //display:none;
    width: 8px;
    height: 8px;
  }

  &::-webkit-scrollbar-track {
    //display:none;
    height: 8px;
    width: 8px;
    background-color: #ffffff;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
  }

  &::-webkit-scrollbar-thumb {
    //display:none;
    background-color: #cacbd4;
    background-clip: padding-box;
    height: 8px;
    -webkit-border-radius: 2em;
    -moz-border-radius: 2em;
    border-radius: 2em;
  }
}

div,
.el-form,
.tree-content-container {
  @include MixinsCss_gd-scrollbar;
}

.default-screen-slot .el-form {
  //el-form-item
  //overflow-y: hidden!important;
  height: calc(79vh - 190px);
}

.less-item-form .default-screen-slot .el-form {
  height: calc(59vh - 190px);
}